<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>审核资源</title>
		<link rel="stylesheet" type="text/css" href="css/resource.css">
	</head>
	<body>
		<h1>
			审核资源 - 
			<s:if test="#session.loginUser.rid==1">三审</s:if>
			<s:elseif test="#session.loginUser.rid==2">二审</s:elseif>
			<s:else>没有权限</s:else>
		</h1>
		<s:if test="#session.loginUser.rid<=2">
			<s:form action="addReview" namespace="/review" method="POST"
				theme="simple" id="main_form" enctype="multipart/form-data">
				<input type="hidden" name="resource.cid" value="${resource.cid}" />
				<input type="hidden" name="resource.id" value="${resource.id}" />
				<input type="hidden" name="resource.uuid" value="${resource.uuid}" />
	
				<table class="review_table" width="750px" >
					<tbody>
						<tr>
							<th width="15%">
								资源编号：
							</th>
							<td>
								${resource.normcode}
							</td>
							<td class="form_tip">
							</td>
						</tr>
						<tr>
							<th>
								资源名称：
							</th>
							<td>
								${resource.title}
							</td>
							<td class="form_tip">
							</td>
						</tr>
						<tr>
							<th>
								文件格式：
							</th>
							<td>
								<s:if test="resource.format=='TEXT'">文本</s:if>
								<s:elseif test="resource.format=='PPT'">PPT</s:elseif>
								<s:elseif test="resource.format=='PHOTO'">照片</s:elseif>
								<s:elseif test="resource.format=='AUDIO'">音频</s:elseif>
								<s:elseif test="resource.format=='VIDEO'">视频</s:elseif>
								<s:elseif test="resource.format=='FLASH'">Flash</s:elseif>
								<s:elseif test="resource.format=='OTHER'">其它</s:elseif>
							</td>
							<td class="form_tip">
							</td>
						</tr>
						<tr>
							<th>
								所属课程：
							</th>
							<td>
								${resource.course }
							</td>
							<td class="form_tip">
							</td>
						</tr>
						<tr>
							<th>
								所属章节编号：
							</th>
							<td>
								${resource.chapter}
							</td>
							<td class="form_tip">
							</td>
						</tr>
						<tr>
							<th>
								资源简介：
							</th>
							<td>
								${resource.note}
							</td>
							<td class="form_tip">
							</td>
						</tr>
						<tr>
							<th>
								审核状态：
							</th>
							<td>
								<font style="font-style:italic;font-weight:bold">
								<s:if test="resource.status==0">
										待审核
									</s:if>
								<s:elseif test="resource.status==1 || resource.status==2 ">
									<font color="green">通过</font>
								</s:elseif>
								<s:elseif test="resource.status==3 ">
									拒绝
								</s:elseif>
								<s:elseif test="resource.status==-1">
									<font color="red">未通过</font>
								</s:elseif>
								</font>
							</td>
							<td class="form_tip">
							</td>
						</tr>
	
						<tr>
							<th>
								审核状态：
							</th>
							<td>
								<input type="radio" name="status" value="2" checked />
								通过
								<input type="radio" name="status" value="1" />
								回退
								<input type="radio" name="status" value="0" />
								拒绝
							</td>
							<td class="form_tip">
							</td>
						</tr>
						<tr>
							<th>
								审核意见：
							</th>
							<td>
								<s:textarea name="advice" cols="60" rows="5"></s:textarea>
							</td>
							<td class="form_tip">
							</td>
						</tr>
						<tr>
							<th>
							</th>
							<td>	
								<s:submit value="提    交"
									style="cursor:pointer"></s:submit>
								<a href="resource/toEditResource.action?uuid=${resource.uuid}&cid=${resource.cid}"
									class="easyui-linkbutton" data-options="plain:true"> 编辑资源 </a>
								<a href="review/getReviewHistoryByUuid.action?uuid=${resource.uuid}"
									class="easyui-linkbutton" data-options="plain:true"> 历史记录 </a>
							</td>
							<td class="form_tip">
							</td>
						</tr>
					</tbody>
				</table>
				<BR></BR>
				<br />
			</s:form>
		</s:if>
	</body>
</html>